package com.whmall.service.crm.entity.dto.openapi;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class OpenPlatformAppRspDTO implements Serializable {

    private static final long serialVersionUID = 603088353231109798L;

    private Long id;
    private Integer deleted;
    private Integer isEnabled;
    private String name;
    private Long userId;
    private Long companyId;
    private String appId;
    private String appSecret;
    private Long createId;
    private Date createTime;
    private Long updateId;
    private Date updateTime;
    private Long enableId;
    private Date enableTime;
    private Property property;

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Property implements Serializable {

        private static final long serialVersionUID = -8042581870889800284L;

        private Integer returnMarketPrice;

        private Integer returnSupplierInformation;

        private String salePlatformName;

        /**
         * 是否允许开放平台搜索管制品	1是，0否
         */
        private String openSearch;
    }
}
